import QtQuick 2.0
import QtQuick.Controls 2.3

ItemDelegate {
    id:exc_main_btnbox_this
    width: 100
    height: width*0.28
    text: qsTr("   Item")
    font.bold: true
    property string source_normal: "picture/p1_setting_simple_z2-1.png"
    property string source_checked: "picture/p1_setting_simple_f2-1.png"

//    anchors.top: parent.top
//    anchors.left: parent.left

    checkable: true
    scale: hovered?(pressed? 0.9:1.1):1

    background: Rectangle{
        anchors.fill: parent
        border.width:parent.press?4:2
        border.color:parent.hovered?"lightskyblue":"transparent"

        color:"transparent"

        BorderImage {
            anchors.fill: parent
            source: exc_main_btnbox_this.pressed^exc_main_btnbox_this.checked?source_checked:source_normal
        }
    }

}

/*##^##
Designer {
    D{i:0;formeditorZoom:6}
}
##^##*/
